package main

import (
	"fmt"

	"net/http"

	g "git.oschina.net/YPTArch/km_api_dispatcher/global"
)

func main() {
	defer func() {
		if err := recover(); err != nil {
			fmt.Println("Error from main() -> " + err.(error).Error())
			panic(err)
		}
	}()

	http.HandleFunc("/api/", g.APIHandle)
	http.ListenAndServe(":6666", nil)
}
